package com.nulgame.learning.rmi.server.launcher;

import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;

import com.nulgame.learning.rmi.server.service.BasicCalendarService;

/**
 * Hello world!
 *
 */
public class Application
{
    public static void main( String[] args )
    {
        System.out.println( "Starting server\n");
        try {
			Registry registry = LocateRegistry.createRegistry(2525);
			registry.rebind(BasicCalendarService.ID, new BasicCalendarService());
		} catch (Exception e) {
			e.printStackTrace();
		}
    }
}
